﻿using MediatR;
using SlaughterItem.Common.Dtos;
using System.ComponentModel.DataAnnotations;

namespace GetSlaughterItem.API.Application.Commands.Week02.ScaleData
{
    public class AddScaleDataCommand:IRequest<Result>
    {
        /// <summary>
        /// 磅秤表ID
        /// </summary>
        public int ScaleId { get; set; }
        /// <summary>
        /// 磅秤类型ID
        /// </summary>
        public int ScaleTypeId { get; set; }
        /// <summary>
        /// 磅秤名称
        /// </summary>
        public string ScaleName { get; set; } = string.Empty;
        /// <summary>
        /// 使用状态
        /// </summary>
        public bool IsScaleState { get; set; }
        /// <summary>
        /// 皮重扣减(公斤)
        /// </summary>
        public int TareNum { get; set; }
        /// <summary>
        /// 皮重按件累加
        /// </summary>
        public bool IsTareAdd { get; set; } = false;
        /// <summary>
        /// 绑定仓库
        /// </summary>
        public int BindDepotId { get; set; }
        /// <summary>
        /// 自动出/入库
        /// </summary>
        public bool IsGoDepot { get; set; } = false;
        /// <summary>
        /// 商品代号名称
        /// </summary>
        public string UPCDataName { get; set; } = string.Empty;
        /// <summary>
        /// 操作人
        /// </summary>
        public string OperatorName { get; set; } = string.Empty;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime ScaleCreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string Modifier { get; set; } = string.Empty;
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime RevempTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除{false:不删除,true:删除}
        /// </summary>
        public bool IsScaleDelete { get; set; } = false;
        /// <summary>
        /// 是否禁用{false:不禁用,true:禁用}
        /// </summary>
        public bool IsScaleDisable { get; set; } = false;
    }
}
